package storage

import "fmt"

func ToDNS(username, password, host, dbname, charset, loc string, port int, parseTime bool) string {
	return fmt.Sprintf("%s:%s@tcp(%s:%d)/%s?charset=%s&parseTime=%t&loc=%s",
		username, password, host, port, dbname, charset, parseTime, loc)
}
